package com.zwps.biz.api.enums;


import lombok.Getter;

import java.util.ArrayList;
import java.util.List;
@Getter
public enum ZCountrySubmitEnum {
    RSVR("rsvr", "水位站", "雨水情测报"),
    PPTN("pptn", "雨量站", "雨水情测报"),
//    RIVER("river", "流量站", "雨水情测报"),
    SHUIWEN("shuiwen", "水文站", "雨水情测报"),
    WATER_QUALITY("water_quality", "水质监测", "雨水情测报"),
    PZTBWL("pztbwl", "渗压", "安全监测信息"),
    DEFORMATION("deformation", "变形", "安全监测信息"),
    TERMITES("termites", "白蚁", "安全监测信息"),
    MACHINE("termites", "机器视觉", "安全监测信息"),
    SIDE_SEAM("side_seam", "测缝", "安全监测信息"),
//    STRESS("stress", "应力", "安全监测信息"),
//    FLEXIBILITY("flexibility", "应变", "安全监测信息"),
//    REBAR("rebar", "钢筋", "安全监测信息"),
    SATELLITE("satellite", "卫星遥感", "监测设备信息"),
    BEIDOU("beidou", "北斗", "监测设备信息"),
//    RADAR("radar", "孔径雷达", "监测设备信息"),
    VEDIO("vedio", "视频监控", "监测设备信息"),
    RADAR("radar", "测雨雷达", "监测设备信息");

    private final String cloumn;
    private final String description;
    private final String  type;
    ZCountrySubmitEnum(String column, String description, String  type) {
        this.cloumn = column;
        this.description = description;
        this.type = type;
    }
    public ZCountrySubmitEnum getEnum(String type) {

        for (ZCountrySubmitEnum zCountrySubmitEnum : ZCountrySubmitEnum.values()) {
            if (zCountrySubmitEnum.type.equals(type)) {
                return zCountrySubmitEnum;
            }
        }
        return null;
    }
    public static List<String> getCloumns() {
            List<String> list=new ArrayList<>();
        for (ZCountrySubmitEnum zCountrySubmitEnum : ZCountrySubmitEnum.values()) {
          list.add(zCountrySubmitEnum.cloumn) ;
        }
        return list;
    }
    public static List<ZCountrySubmitEnum> getCloumnByType(String type) {
        List<ZCountrySubmitEnum> list=new ArrayList<>();
        for (ZCountrySubmitEnum zCountrySubmitEnum : ZCountrySubmitEnum.values()) {
            if (zCountrySubmitEnum.type.equals(type)){
            list.add(zCountrySubmitEnum) ;
            }
        }
        return list;
    }

}

